package rubix.events {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author DoctorSTaL
	 */
	public class InterfaceEvent extends Event {
		public static const UNDO_MOVE:String = "undoMove";
		public static const UNDO_ALL:String = "undoAll";
		public static const HIGHLIGHT_SIDE:String = "highlightSide";
		public static const ROTATE_SIDE:String = "rotateSide";
		public static const RANDOM_MOVE:String = "randomMove";
		
		public var orientation:Array;
		public var angle:Number;
		
		public function InterfaceEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event { 
			var res:InterfaceEvent = new InterfaceEvent(type, bubbles, cancelable);
			res.oritentation = oritentation;
			res.angle = angle;
			return res;
		} 
		
		public override function toString():String { 
			return formatToString("InterfaceEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}